package com.dc.system.service;

import com.dc.common.model.BaseModel;
import com.dc.system.model.SysUser;

import javax.servlet.http.HttpServletRequest;

public interface UserService {
    BaseModel login(BaseModel baseModel, SysUser user, HttpServletRequest request) throws Exception;

    BaseModel loginOut(BaseModel baseModel, HttpServletRequest request) throws Exception;

    BaseModel addUser(BaseModel baseModel, SysUser user, HttpServletRequest request, int deptId, int roleId) throws Exception;

    BaseModel updateUser(BaseModel baseModel, SysUser user, HttpServletRequest request, int deptId, int roleId) throws Exception;

    BaseModel getUserById(BaseModel baseModel, SysUser user) throws Exception;

    BaseModel delUser(BaseModel baseModel, SysUser user, HttpServletRequest request) throws Exception;

    BaseModel getUsers(BaseModel baseModel, SysUser user) throws Exception;
}
